var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = (function () {
    function e() {
        (this.renderingDebug = !0),
            (this.node = cc.find("Canvas")),
            (this.draw_node = new cc.Node("GameDebug_draw_node")),
            this.node.addChild(this.draw_node, 999),
            (this._draw = this.draw_node.addComponent(cc.Graphics));
    }
    return (
        Object.defineProperty(e, "instance", {
            get: function () {
                return e._instance || (e._instance = new e()), e._instance;
            },
            enumerable: !1,
            configurable: !0
        }),
        (e.prototype._draw_line = function (e, t, o) {
            void 0 === o && (o = cc.Color.RED);
            var n = this._draw;
            n.moveTo(e.x, e.y),
                n.lineTo(t.x, t.y),
                n.close(),
                n.fill(),
                (n.lineWidth = 10),
                (n.strokeColor = o),
                n.stroke();
        }),
        (e.prototype.clear = function () {
            this._draw.clear();
        }),
        (e.prototype.setGoogleTipColor = function () {
            ad.curr_platform == window.ad.Platform.BROWSER &&
                cc.find("PROFILER-NODE/LEFT-PANEL") &&
                cc.find("PROFILER-NODE/RIGHT-PANEL") &&
                ((cc.find("PROFILER-NODE/LEFT-PANEL").color = cc.Color.GREEN),
                (cc.find("PROFILER-NODE/RIGHT-PANEL").color = cc.Color.RED));
        }),
        (e.prototype.startTimer = function () {
            return new Date().getTime();
        }),
        (e.prototype.endTimer = function () {}),
        (e._instance = null),
        e
    );
})();
n.default = i;
